import request from '@/utils/request'
// 查询红包创建记录
export function getreadPacketList(query) {
  return request({
    url: '/readPacket/page',
    method: 'get',
    params: query
  })
}
// 创建红包
export function postReadPacket(data) {
  return request({
    url: '/readPacket',
    method: 'post',
    params: data
  })
}
// 查看会员领取记录或者所有会员领取记录
export function getreadPacketHistory(query) {
  return request({
    url: '/readPacket/history',
    method: 'get',
    params: query
  })
}
// 修改红包状态
export function putReadPacketStatus(id,status) {
  return request({
    url: `/readPacket/${id}/${status}` ,
    method: 'put'
  })
}
